package com.example.demo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.UnsupportedEncodingException;
@RefreshScope
@RestController
public class TestController {

    @Value("${remoteGitProviderTwo}")
    private String remoteGitProviderTwo;

    @CrossOrigin
    @RequestMapping("/test")
    public String test(){
        return remoteGitProviderTwo;
    }

    @CrossOrigin
    @RequestMapping("/snowslide")
    public String snowslide(){
        return "测试雪崩效应";
    }

}
